package com.ruoyi.finishedProduct.mapper;

import com.ruoyi.finishedProduct.domain.FinishedProduct;
import com.ruoyi.finishedProduct.domain.FinishedProductModel;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;
import java.util.Map;

/**
 * @Author
 * @Version 1.0
 */
@Mapper
public interface FinishedProductMapper {

    public  int addFinishedProduct(FinishedProduct finishedProduct);

    public int addFinishedProductModel(FinishedProductModel finishedProductModel);

    public void  removeFinishedProduct(Long finishedProductId);

    public void removeFinishedProductModel(Long finisherProductId);

    public List<FinishedProduct> selectFinishedProductList(FinishedProduct finishedProduct);

    public FinishedProduct selectEdit(Long finishedProductId);

    public int updateFinishedProduct(FinishedProduct finishedProduct);

    public  int addFinishedProductTemplate(FinishedProduct finishedProduct);

    public int addFinishedProductModelTemplate(FinishedProductModel finishedProductModel);

    public void  removeFinishedProductTemplate(Long finishedProductId);

    public void removeFinishedProductModelTemplate(Long finisherProductId);

    public FinishedProduct selectFinishedProductTemplate(Map<String,Object> resMap);

    public FinishedProductModel selectFinishedProductModelLast(Map<String,Object> resMap);

    public List<FinishedProductModel> selectFinishedProductModelsTemplate(Map<String,Object> resMap);
}
